package com.ruoyi.mapper;

import com.ruoyi.domain.UserHealthGoals;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserHealthGoalsMapper {

    // 获取用户最新的运动步数目标
    UserHealthGoals getLatestStepGoal(@Param("userId") Long userId);

    // 获取用户最新的运动时间目标
    UserHealthGoals getLatestTimeGoal(@Param("userId") Long userId);

    // 插入一个新的目标
    void insertGoal(UserHealthGoals healthGoals);

    // 获取所有未完成的健康目标
    List<UserHealthGoals> getAllActiveGoals();

    // 更新目标数据
    void updateGoal(UserHealthGoals healthGoal);
}
